/**
 * 
 */
package org.dragonfire.dasm.directives;

import java.util.ArrayList;

import org.dragonfire.dasm.Command;
import org.dragonfire.dasm.Listing;
import org.dragonfire.dasm.DirectiveManager.Directive;

/**
 * Prints out the specified text and then moves to the next line<br />
 * <br />
 * Format:<br />
 * <code>#ECHOLN <i>&lt;arg1&gt;</i>[,<i>&lt;arg2&gt;</i>[,<i>...</i>]]</code><br />
 * <br />
 * Parameters:<br />
 * <table>
 * <tr>
 * <td><code>arg1</code></td>
 * <td>(Double/String) The text to be placed into the log file.</td>
 * </tr>
 * </table><br />
 * Errors:<br />
 * <i>None</i>
 * 
 * @author Darth Android
 * @see org.dragonfire.dasm.directives.Echo
 * @version 2.0
 */
public class Echoln extends Directive {

	/**
	 * {@inheritDoc}
	 */
	@Override
	public ArrayList<Listing> pass1(Command c) {
		// not much more than an alias that modifies the parameters before
		// passing them
		return getDM().pass1(new Command("#echo", c.getRawParams() + ",\"\\r\\n\""));
	}
}